Optimal. Leaf size=39 \[ a \log (x)-\frac {1}{2} i b \text {Li}_2\left (-\frac {i c}{x}\right )+\frac {1}{2} i b \text {Li}_2\left (\frac {i c}{x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {5031, 4848, 2391} \[ -\frac {1}{2} i b \text {PolyLog}\left (2,-\frac {i c}{x}\right )+\frac {1}{2} i b \text {PolyLog}\left (2,\frac {i c}{x}\right )+a \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2391
Rule 4848
Rule 5031
Rubi steps
\begin {align*} \int \frac {a+b \tan ^{-1}\left (\frac {c}{x}\right )}{x} \, dx &=-\operatorname {Subst}\left (\int \frac {a+b \tan ^{-1}(c x)}{x} \, dx,x,\frac {1}{x}\right )\\ &=a \log (x)-\frac {1}{2} (i b) \operatorname {Subst}\left (\int \frac {\log (1-i c x)}{x} \, dx,x,\frac {1}{x}\right )+\frac {1}{2} (i b) \operatorname {Subst}\left (\int \frac {\log (1+i c x)}{x} \, dx,x,\frac {1}{x}\right )\\ &=a \log (x)-\frac {1}{2} i b \text {Li}_2\left (-\frac {i c}{x}\right )+\frac {1}{2} i b \text {Li}_2\left (\frac {i c}{x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 39, normalized size = 1.00 \[ a \log (x)-\frac {1}{2} i b \text {Li}_2\left (-\frac {i c}{x}\right )+\frac {1}{2} i b \text {Li}_2\left (\frac {i c}{x}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.43, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {b \arctan \left (\frac {c}{x}\right ) + a}{x}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 3.96, size = 74, normalized size = 1.90 \[ \frac {{\left (\frac {b c^{6} i \log \left (\frac {c i}{x} + 1\right )}{x^{2}} - \frac {b c^{6} i \log \left (-\frac {c i}{x} + 1\right )}{x^{2}} - 2 \, b c^{4} \arctan \left (\frac {c}{x}\right ) - 2 \, a c^{4} - \frac {2 \, b c^{5}}{x}\right )} x^{2}}{4 \, c^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.05, size = 94, normalized size = 2.41 \[ -a \ln \left (\frac {c}{x}\right )-b \ln \left (\frac {c}{x}\right ) \arctan \left (\frac {c}{x}\right )-\frac {i b \ln \left (\frac {c}{x}\right ) \ln \left (1+\frac {i c}{x}\right )}{2}+\frac {i b \ln \left (\frac {c}{x}\right ) \ln \left (1-\frac {i c}{x}\right )}{2}-\frac {i b \dilog \left (1+\frac {i c}{x}\right )}{2}+\frac {i b \dilog \left (1-\frac {i c}{x}\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ b \int \frac {\arctan \left (c, x\right )}{x}\,{d x} + a \log \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.34, size = 32, normalized size = 0.82 \[ a\,\ln \relax (x)+\frac {b\,\left ({\mathrm {Li}}_{\mathrm {2}}\left (1-\frac {c\,1{}\mathrm {i}}{x}\right )-{\mathrm {Li}}_{\mathrm {2}}\left (1+\frac {c\,1{}\mathrm {i}}{x}\right )\right )\,1{}\mathrm {i}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {a + b \operatorname {atan}{\left (\frac {c}{x} \right )}}{x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________